
import 'package:center_beijing/common/http_util.dart';


/*
* 获取用户需要处理的任务列表
* */
getUserWorkflow(params) async {
  var responseJson = await HttpUtil().get("workflow/irest/base/dk_workflowHandler/getUserCurrentTaskList",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}
/*
* 获取用户发起的任务列表
* */
getUserCreate(params) async {
  var responseJson = await HttpUtil().get("workflow/irest/base/dk_workflowHandler/getMyStartProcessInstance",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}
/*
* 获取问题清单
* */
getAllTasks(params) async {
  var responseJson = await HttpUtil().get("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/getTbmcQsCheckRecordVoList",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取办理时获取流程表单地址
* */
getUserTaskPoint(params) async {
  var responseJson = await HttpUtil().post("workflow/irest/base/dk_workflowHandler/formInfo",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取引用标准(质量)
* */
getQsIssue(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsIssueTypeCatalogHandler/getNodes",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}




/*
* 获取引用标准(安全)
* */
getQsSafeIssue(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsIssueTypeCatalogHandler/getNodesNew",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取设备列表
* */
getEquipments(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_machineTypeHandler/getZTreeNodes",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取整改人
* */
getNodeUser(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_specialNodeUserHandler/getRectifyNodeUserList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取审核人
* */
getScrapUser(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_specialNodeUserHandler/getScrapApproveList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}



/*
* 获取工区
* */
getWorkArea(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_projectWorkAreaHandler/getIdAndNameByProjectSectionId",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取班组
* */
getTeam(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_workerTeamHandler/getIdAndNameByWorkAreaId",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取工人
* */
getWorkers(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_workerHandler/getWorkerInfoListByTeamIdAndAreaId",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取复检人员
* */
getFlowDapts(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/getWrkflowDapts",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 提交问题
* */
submitTask(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/addQsCheckRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 质量问题详情
* */
getQsDetail(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/getQsCheckRecordDetailById",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取需要整改的任务详情
* */
getQsProblemDetail(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/getQsCheckRecordInfoById",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 提交复检申请
* */
submitQsCheckRecord(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/updateQsCheckRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 获取任务详情
* */
getProblemDetail(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/getQsCheckRecordDetailById",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取设备巡检列表
* */
getEquipmentList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckPlanHandler/getPlanListByProjectSectionId",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取巡检计划下设备列表
* */
getEquipmentOfTask(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckPlanHandler/getEquipmentListByPlanId",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 设备关联检查项
* */
getEquipmentCheckInfo(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckPlanHandler/getCheckInfoList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 保存检查记录
* */
saveCheckRecord(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckRecordHandler/saveCheckRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 设备维修保养记录填报
* */
saveEquipmentRecord(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentMaintainRecordHandler/saveEquipmentMaintainRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 设备检查信息查询
* */
getEquipmentCheckHistory(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckPlanHandler/getCheckEquRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 提交巡检
* */
subPlanStatusById(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckPlanHandler/upPlanStatusById",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取设备维保详情
* */
getEquipmentInfo(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_machineEquipmentInfoHandler/getMachineEquipmentInfoExById",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取报废详情
* */
getScrapDetailHistory(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_elementScrapInfoHandler/getElementScrapInfoEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 获取特种设备详情
* */
getEquipmentCheckAlert(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckAlertHandler/getEquipmentCheckAlertEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 确认提醒
* */
saveAlertApprove(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentCheckAlertHandler/saveAlertApprove",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取设备详细信息
* */
getMachineEmployeeRelEx(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_machineEquipmentInfoHandler/getMachineEquipmentInfoEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 保存维修记录
* */
saveMachineRepair(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_machineRepairHandler/saveMachineRepair",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}
/*
* 保存使用记录
* */
saveEquipmentUseRecord(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_equipmentUseRecordHandler/saveEquipmentUseRecord",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 修改已读未读状态
* */
changeRead(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_tbmcQsCheckRecordHandler/updateRecordRead",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 新增时获取检查内容信息
* */
getWorkCheckLicDefList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_workCheckLicDefHandler/getWorkCheckLicDefList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 新增时获取危险元素信息(字典)
* */
getDangerous(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/getCodeItems",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}



/*
* 获取班组
* */
getWorkerTeamList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_workerTeamHandler/getWorkerTeamList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取部门
* */
getWorkerPartList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_projectDepartmentHandler/getRootProjectDepartmentList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取安全措施
* */
getSafeStepDefList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_safeStepDefHandler/getSafeStepDefList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取个人防护器材
* */
getPersonSafeList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/getCodeItems",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取气体检测项目
* */
getGasList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/getCodeItems",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 受限空间作业新增接口(发起)
* */
addSpaceWork(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/saveConfinedSpaceWork",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 获取受限空间作业详情
* */
getConfinedSpaceWorkEx(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/getConfinedSpaceWorkEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 获取受限空间作业审批
* */
saveConfinedSpaceWorkProcess(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/saveConfinedSpaceWorkProcess",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取受限空间作业列表
* */
getConfinedSpaceWorkExList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_confinedSpaceWorkHandler/getConfinedSpaceWorkExList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


/*
* 获取施工作业许可列表
* */
getConsWorkLicenseExList(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_consWorkLicenseHandler/getConsWorkLicenseExList",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}



/*
* 新增施工作业许可(发起)
* */
saveConsWorkLicense(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_consWorkLicenseHandler/saveConsWorkLicense",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 新增施工作业许可详情
* */
getConsWorkLicenseEx(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_consWorkLicenseHandler/getConsWorkLicenseEx",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 获取作业条件确认、复核人员
* */
getSignTypeCodeDef(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_workLicensePersonDefHandler/getSignTypeCodeDef",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

/*
* 提交施工作业许可审批
* */
saveConsWorkLicenseProcess(params) async {
  var responseJson = await HttpUtil().post("bim/irest/base/ccbim_consWorkLicenseHandler/saveConsWorkLicenseProcess",params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}


